<?php
// 数据库连接配置部分

return array(
    'group'     => array(
        'tttable'     => array('tttable01', 'tttable02'),
    ),
    'dsn'       => array(
        'mysql'     => array(
            'class'     => 'Pdo',
            'type'      => 'mysql',
            'host'      => '127.0.0.1',
            //'port'      => null,
            'user'      => 'root',
            'passwd'    => '123456',
            'dbname'    => 'message',
            //'options'   => null,
        ),
        'memcache'  => array(
            'class'     => 'Memcache',
            'host'      => '127.0.0.1',
            'port'      => '11211',
//            'host'      => array('192.168.0.51', '192.168.0.21',),
//            'port'      => array('11211', '11211'),
//            'weight'    => array(1, 1),
        ),
        'ttcache'   => array(
            'class'     => 'TtCache',
            'host'      => '127.0.0.1',
            'port'      => '1971',
        ),
        'tttable01'   => array(
            'class'     => 'TtTable',
            'host'      => '127.0.0.1',
            'port'      => '1972',
        ),
        'tttable02'   => array(
            'class'     => 'TtTable',
            'host'      => '127.0.0.1',
            'port'      => '1973',
        ),
    ),
);
